package org.vectrics.recruiter.job.event;

import java.util.Locale;

import org.vectrics.common.html.Cell;
import org.vectrics.provider.CoreServiceLocator;
import org.vectrics.recruiter.job.Job;

public class JobCreateHtmlEmail extends JobHtmlEmail {

	public JobCreateHtmlEmail(Locale locale, Job job) {
		super(locale, job);
	}

	protected void renderContent(Cell cell) {
		cell.addElement("<font style=\"font:normal 0.8em Verdana\">"
				+ this.getPhrase("phrase.email.job.added") + "</font><br>");
		this.addJobInfoTable(this.getJob(), cell);
	}

	public String getPhrase(String code) {
		String phrase = CoreServiceLocator.getPhraseProvider().getMessage(code, this.getLocale());
		return(phrase);
	}
}
